package com.wyg.epredisstarter.config;

import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Author: WangYongGan
 * @Date: 2022/5/19 18:57
 * @Description:
 */
@ConfigurationProperties(prefix = "ep.redis")
@Data
public class RedisConfigProperties implements InitializingBean {
    /**
     * Description: 默认配置,有默认值的情况下可以不用配置，没有默认值的额情况下不进行手动配置会报错
     *
     * @author WangYongGan
     * @since 2022-05-19 20:29:53
     */
    String prefix = "";
    String host = "localhost";
    int port = 6379;
    int database = 0;
    String enableMethodCache = "true";

    @Override
    public void afterPropertiesSet() {
    }


}
